<template>
  <div class="app-container home">
    <el-row :gutter="24">
      <el-col :span="24" :xs="24">
        <el-card class="update-log" style="margin-top: 20px">
          <el-col :span="6" :xs="12" v-hasPermi="['flow:coursefrom:list']">
            <div style="display:flex;align-items: center;justify-content: center;" @click="goCourseFrom">
              <div style="width: 100px;height: 100px;border-radius: 50px;background-color: #f2f2f2;display: flex;align-items: center;justify-content: center;border: 1px solid #409EFF">
                <img src="@/assets/images/shouye/sousuo.png" alt="donate" width="50">
              </div>
            </div>
            <div style="text-align: center;color: #409eff;font-size: 18px;margin: 10px 0;"><span>订单查询</span></div>
          </el-col>
          <el-col :span="6" :xs="12" v-hasPermi="['flow:producefrom:list']">
            <div style="display:flex;align-items: center;justify-content: center;" @click="goProduceFrom">
              <div style="width: 100px;height: 100px;border-radius: 50px;background-color: #f2f2f2;display: flex;align-items: center;justify-content: center;border: 1px solid #409EFF">
                <img src="@/assets/images/shouye/shengchan.png" alt="donate" width="50">
              </div>
            </div>
            <div style="text-align: center;color: #409eff;font-size: 18px;margin: 10px 0;"><span>生产登记</span></div>
          </el-col>
          <el-col :span="6" :xs="12" v-hasPermi="['flow:transportfrom:list']">
            <div style="display:flex;align-items: center;justify-content: center;" @click="goTransportFrom">
              <div style="width: 100px;height: 100px;border-radius: 50px;background-color: #f2f2f2;display: flex;align-items: center;justify-content: center;border: 1px solid #409EFF">
                <img src="@/assets/images/shouye/yunshu.png" alt="donate" width="50">
              </div>
            </div>
            <div style="text-align: center;color: #409eff;font-size: 18px;margin: 10px 0;"><span>运输登记</span></div>
          </el-col>
          <el-col :span="6" :xs="12" v-hasPermi="['flow:hospitalfrom:list']">
            <div style="display:flex;align-items: center;justify-content: center;" @click="goHospitalfrom">
              <div style="width: 100px;height: 100px;border-radius: 50px;background-color: #f2f2f2;display: flex;align-items: center;justify-content: center;border: 1px solid #409EFF">
                <img src="@/assets/images/shouye/yiyuan.png" alt="donate" width="50">
              </div>
            </div>
            <div style="text-align: center;color: #409eff;font-size: 18px;margin: 10px 0;"><span>医院收货</span></div>
          </el-col>

        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.6"
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
      //测试
    },
    //跳转订单查询界面
    goCourseFrom(){
      this.$router.push({path:"/order/from/coursefrom"});//跳转+传参(订单id)
    },
    //跳转生产登记界面
    goProduceFrom(){
      this.$router.push({path:"/order/from/producefrom"});//跳转+传参(订单id)
    },
    //跳转运输登记界面
    goTransportFrom(){
      this.$router.push({path:"/order/from/transportfrom"});//跳转+传参(订单id)
    },
    //跳转医院收货界面
    goHospitalfrom(){
      this.$router.push({path:"/order/from/hospitalfrom"});//跳转+传参(订单id)
    },

  }
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

